package com.example.weatherserctary2.http;

public class Future {
	private String temperature;
	private String weather;
	private String week;
	private String date;
	public String getTemperature() {
		return temperature;
	}
	public void setTemperature(String temperature) {
		this.temperature = temperature;
	}
	public String getWeather() {
		return weather;
	}
	public void setWeather(String weather) {
		this.weather = weather;
	}
	public String getWeek() {
		return week;
	}
	public void setWeek(String week) {
		this.week = week;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	
	public String toString(){
		return getMonthAndDay(date)+" "+week+"  "+weather+"  "+temperature;
	}
	
	public String getMonthAndDay(String date){  //201406
		int month = Integer.parseInt(date.substring(4,6));
		int day = Integer.parseInt(date.substring(6,8));
		return month+"月"+day+"日";
	}
}
